//
//  ZHAlbumModel.m
//  XMLYFM
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 zzl. All rights reserved.
//

#import "ZHAlbumModel.h"

@implementation ZHAlbumModel

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"userInfo"]) {
        Userinfo *user = [[Userinfo alloc]init];
        user.nickname = value[@"nickname"];
//        NSLog(@"zh===%@",value[@"nickname"]);

        user.personDescribe = [value objectForKey:@"personDescribe"];
        user.smallLogo = [value objectForKey:@"smallLogo"];
//        NSLog(@"zh===%@",user.nickname);
        user.tracks = (long)[value objectForKey:@"tracks"];
        self.userInfo = user;
    }
    
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end


@implementation Userinfo

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end


